﻿

using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Diagnostics;
using System.Threading;

namespace GNF.GNFService
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main()
        {
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[] 
			{ 
				new GNFService() 
			};
            ServiceBase.Run(ServicesToRun);
            //Debug();
            //Release();
        }

        [Conditional("DEBUG")]
        public static void Debug()
        {
            var service = new GNFService();
            service.StartService();

            // Sleep the main thread indefinitely while the service code
            // runs in .OnStart

            Thread.Sleep(Timeout.Infinite);
        }

        [Conditional("RELEASE")]
        public static void Release()
        {
           
        }

    }
}
